package castledefense.game.render;

import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.GL10;
final public class GraphicsUtil {


	public static final void translate(float x, float y) {
		Gdx.gl10.glTranslatef(x, y, 0);
	}

	public static final void scale(float x, float y) {
		Gdx.gl10.glScalef(x, y, 1);
	}

	public static final void clear() {
		Gdx.gl.glClear(GL10.GL_COLOR_BUFFER_BIT);
	}


	public static final void pushMatrix() {
		Gdx.gl10.glPushMatrix();
	}

	public static final void popMatrix() {
		Gdx.gl10.glPopMatrix();

	}

	public static final void startBlend() {
		Gdx.gl.glEnable(GL10.GL_BLEND);
		Gdx.gl.glBlendFunc(GL10.GL_SRC_ALPHA, GL10.GL_ONE_MINUS_SRC_ALPHA);
	}

	public static final void endBlend() {
		Gdx.gl.glDisable(GL10.GL_BLEND);
	}
}
